/*
package demo1;
//外部类
class OuterClass{
    //静态内部类
    public int data1 = 1;
    public int data2 = 2;
    public static int data3 = 3;
    static class InnerClass{
        public int data4 = 4;
        private int data5 = 5;
        public static int data6 = 6;

        public void func(){
            System.out.println("static -> InnerClass::func()");
            OuterClass outerclass = new OuterClass();
            System.out.println(outerclass.data1);
            System.out.println(outerclass.data2);
            System.out.println(data3);
            System.out.println(data4);
            System.out.println(data5);
            System.out.println(data6);
        }
    }
    public void test(){
        InnerClass innerClass = new InnerClass();
        System.out.println(data1);
        System.out.println(data2);
        System.out.println(data3);
        System.out.println(innerClass.data4);
        System.out.println(innerClass.data5);
        System.out.println(innerClass.data6);
    }
}
public class Test {
    public static void main(String[] args) {
        OuterClass.InnerClass innerClass = new OuterClass.InnerClass();
        int a = innerClass.data4;
        int b = OuterClass.InnerClass.data6;
    }
}
*/
